
<?php if ($this->paginator->getTotalItemCount() > 0) :?>
    <ul class="thumbs thumbs_nocaptions">
        <?php foreach( $this->paginator as $photo )
        {
            $playlist      = $photo->getParent();
            
            $videoEmbedded = '';
        
            // $view == false means that this rich content is requested from the activity feed
            
              $desc   = strip_tags($playlist->description);
              $desc   = "<div class='music_desc'>".(Engine_String::strlen($desc) > 255 ? Engine_String::substr($desc, 0, 255) . '...' : $desc)."</div>";
              $zview  = Zend_Registry::get('Zend_View');
              $zview->playlist     = $playlist;
              $zview->songs        = array($photo);
              $zview->short_player = true;
              $zview->s_id = $this->s_id;
              $videoEmbedded       = $desc . $zview->render('application/modules/Country/views/scripts/_Player.tpl');
            

           echo  $videoEmbedded;
    
       }?>
     </ul>
    
    <?php if( $this->paginator->count() > 1 ): ?>
          <br />
          <?php echo $this->paginationControl(
            $this->paginator, null, null, array(
              'pageAsQuery' => false,
              'query' => $this->searchParams
              )); ?>
    <?php endif; ?>
<?php else:?>

<div class="tip"><span><?php echo $this->translate('There no music in country. Click <a href="javascript:void(0)" onclick ="showTabAddMusic()"> here </a> and select "Add Music" in activity to add music to this country.')?></span></div>
<?php endif; ?>